# -*- coding: utf-8 -*-
# @Time: 2022/6/27 16:53
# @Author: 发抖的小喵喵
# @Email: panyi_20210601@163.com
# @File: 校验验证码接口(新增).py
# @Project: haixin
# @Software: PyCharm


from test_case.haixin.Method.Post import post_method


def checkPayCode():
    """
    海信收银台根据用户id、短信或安全密码到我店接口校验
    :return:返回校验结果
    """

    url = "https://api-pre.shwoody.com/ma/chiobeansOrder/checkPayCode"

    data = {
        "userId": "1626059056349319168",     # pre:1509864748823482368  test:1532568881774858240
        # "userId": "1532188429838848000",  # 上海我店官方加盟店1  pre:比那多:1535639851150610432
        "payCode": "627551",
        "validType": '2'  # 1安全密码 2短信验证码
    }

    response = post_method(data, url)
    print("接口响应数据：" + str(response))


if __name__ == "__main__":
    checkPayCode()
